<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <script>
    /**
     * ...  => 扩展运算符，能够将数组转换为以逗号分割的参数序列
     * 扩展运算符的应用：
     * 1.数组的合并
     * 2.数组的克隆
     * 3.将伪数组转换为真数组
     * @type {string[]}
     */
    const names = ['Jason','Black','Jackson','Mike']
    let printName = function () {
      console.log(arguments)
    }
    printName(...names)
    printName(names)

    const arr1 = ['jack','black']
    const arr2 = ['jackson','jason']
    const arrCombine = [...arr1,...arr2]
    const arrClone = [...arr1]

    const divs = document.getElementsByTagName("div")
    const divNew = [...divs]
  </script>
</body>
</html>